'use strict';

const Controller = require('egg').Controller;

class UserlistController extends Controller {
    //获取数据
    async index() {
        this.ctx.body = '获取数据'
    }
    //创建数据
    async create(){
        this.ctx.body = '创建数据'
    }
    //更新数据
    async update(){
        console.log("=====",this.ctx.params);
        this.ctx.body = '更新数据'
    }
    async destroy(){
        this.ctx.body = '删除数据'
    }
}

module.exports = UserlistController;
